﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="NewFolderDialog.aspx.cs" Inherits="LenderClearingHouse.NewFolderDialog" %>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>

    <script type="text/javascript">
        function GetRadWindow() {
            var oWindow = null;
            if (window.radWindow) oWindow = window.radWindow;
            else if (window.frameElement.radWindow) oWindow = window.frameElement.radWindow;
            return oWindow;
        }

        function CloseAndRefresh() {
            var oWnd = GetRadWindow();
            if (oWnd.BrowserWindow.Refresh) {
                oWnd.BrowserWindow.Refresh();
            }
            oWnd.close();
        }

        function CancelAndClose() {
            GetRadWindow().close();
        }
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <table style="width: 100%;">
            <tr>
                <td colspan="2">&nbsp;</td>
            </tr>
            <tr>
                <td valign="baseline">
                    Folder&nbsp;name:&nbsp;
                </td>
                <td Width="100%" style="padding-top:3px">
                    <asp:TextBox ID="tbFolderName" runat="server" Width="95%"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                        ErrorMessage="*" ControlToValidate="tbFolderName" ForeColor="Red"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td colspan="2">&nbsp;</td>
            </tr>
            <tr>
                <td colspan="2" align="right">
                    <asp:Button ID="Button1" runat="server" Text="OK" Width="80px" 
                        onclick="Button1_Click" />&nbsp;&nbsp;<asp:Button ID="Button2"
                        runat="server" Text="Cancel" OnClientClick="CancelAndClose();" 
                        Width="80px" CausesValidation="False" />
                </td>
            </tr>
        </table>    
    </div>
    </form>
</body>
</html>
